import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import AutoImport from 'unplugin-auto-import/vite';
import { resolve } from 'path';


// https://vitejs.dev/config/
export default defineConfig({
	plugins: [uni(),
	//自动导入vue相关内容，简化代码
	AutoImport({
		imports: ['vue'],
		// 指定 dts 文件的生成路径
		dts: resolve(__dirname, 'src/types/auto-imports.d.ts')
	})],
});